<template>
  <AdUpload v-model="models" action-url="http://localhost:3000/api/upload" preview></AdUpload>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import type { UploadUserFile } from 'element-plus';

const models = ref<UploadUserFile[]>([
  {
    name: 'food.jpeg',
    status: 'ready',
    url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100',
  },
]);
</script>
